
import {request} from './request'
import {apiHub} from './config'
const IDS_URL=apiHub.IDS_URL
const JOB_URL=apiHub.JOB_URL

//获取验证码		参数 mobile
export function sendSmsCode(formdata) {
  return request({
    url: IDS_URL+`/pub/sms/sendSmsCode`,
    data: formdata,
    method: 'post',
  })
}

// 获取token		mobile：（手机号）	msgCode：（验证码）
export function getToken(formdata) {
  return request({
    url: IDS_URL+`/pub/user/loginRegisterCustomer`,
    data: formdata,
    method: 'post',
  })
}

// 获取用户信息
export function getByToken(formdata) {
  return request({
    url: JOB_URL+`/jobIntention/getByToken`,
    data: formdata,
    method: 'get',
  })
}

// 提交用户简历信息
export function setAddressInfo(formdata) {
  return request({
    url: JOB_URL+`/jobIntention`,
    data: formdata,
    method: 'post',
  })
}

// 修改用户简历信息
export function putAddressInfo(formdata) {
  return request({
    url: JOB_URL+`/jobIntention`,
    data: formdata,
    method: 'put',
  })
}